import request from '@/utils/request'
// 获取区域列表
export const getregion = (params) => {
  return request.get('/vm-service/region/search', { params })
}
// 新增区域
export const addregion = (data) => {
  return request.post('/vm-service/region', data)
}
// 获取区域详情
export const getregiondetail = (params) => {
  return request.get('/vm-service/node/search', { params })
}
// 修改区域
export const modifyregion = (data) => {
  return request.put(`/vm-service/region/${data.id}`, data)
}
// 删除区域
export const delregion = (id) => {
  return request.delete(`/vm-service/region/${id}`)
}
